package Control;

import Entity.Job_Registration;
import Form.Job_DeleteForm;
import Form.Job_UpdateForm;

public class Job_Delete_Controller {

	private Job_Registration deleteJob = new Job_Registration();
	 
	private Job_DeleteForm parser;

	public Job_Delete_Controller(Job_DeleteForm parser) {
		setParser(parser);
	}

	public Job_DeleteForm getParser() {
		return parser;
	}

	public void setParser(Job_DeleteForm parser) {
		this.parser = parser;
	} 
	
	public void deleteJob(){ 
		System.out.println(getParser().getJobID().getText());	
		deleteJob.setJobID(getParser().getJobID().getText()); 
		deleteJob.deleteJob();
	}
	
}
